package org.fxcontainer.commands
{
	import com.developmentarc.core.actions.commands.AbstractCommand;
	
	import org.fxcontainer.controls.IControl;
	
	/**
	 * The command to indicate that <code>IControl</code> is appeared. 
	 * @author Izzet_Mustafayev
	 */
	public class ControlAppearCommand extends AbstractCommand
	{
		
		/**
		 * The command type. 
		 */
		static public const CTRL_APPEAR_CMD:String = "org.fxcontainer.commands.ControlAppearCommand.CTRL_APPEAR_CMD";
		
		/**
		 * The control that appeared. 
		 */
		private var _control:IControl;
		
		/**
		 * The command constructor. 
		 * @param type the command type.
		 * @param control the appeared control
		 */
		public function ControlAppearCommand(type:String, control:IControl)
		{
			super(type);
			this._control = control;
		}
		
		public function get control():IControl
		{
			return this._control;
		}
	}
}